import dash_bootstrap_components as dbc
import pandas as pd

df = pd.DataFrame(
    {
        "姓名": ["乔峰", "段誉", "阿朱", "扫地僧"],
        "职业": ["战士", "刺客", "法师", "大Boos"],
    }
)

table_html = dbc.Table.from_dataframe(df, striped=True, bordered=True, hover=True)